wayland: Don't send invalid anchor rectangles
authorMatthias Clasen <mclasen@redhat.com>
Sun, 9 Aug 2020 20:00:19 +0000 (16:00 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 9 Aug 2020 20:02:25 +0000 (16:02 -0400)
commita85fc0008c9618b4999f3851ffb9ff01db2a03dc
treedf475be1b2c65d20c5eb8a1d30af423d5d2080ca
parent2bf9ae005fc0fb9f51202b5e6dc7525ae47464da
wayland: Don't send invalid anchor rectangles

When we send an anchor rectangle with a width or
height of 0, mutter reponds with "Invalid anchor
rectangle size". So, don't do that.

This was seen as sudden disappearance of gtk4-demo
when you click the fishbowl benchmark all the way
through to the menubuttons.

Fixes: #3027
gdk/wayland/gdksurface-wayland.c